package com.liuheng.spzx.order;

import com.liuheng.spzx.common.annotation.EnableUserTokenFeignInterceptor;
import com.liuheng.spzx.common.annotation.EnableUserWebMvcConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableFeignClients(basePackages = {
        "com.liuheng.spzx.feign.cart",
        "com.liuheng.spzx.feign.user",
        "com.liuheng.spzx.feign.product"
})
@EnableUserTokenFeignInterceptor
@MapperScan("com.liuheng.spzx.order.mapper")
@EnableUserWebMvcConfiguration
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
